# Contributor: Sebastian Hudak <sebastian@sebsite.pw>
# Maintainer: Sebastian Hudak <sebastian@sebsite.pw>
pkgname=wiimms-szs-tools
pkgver=2.26a
pkgrel=0
pkgdesc="Set of command-line tools to work with Mario Kart Wii files"
# releases aren't tagged; this commit matches version 2.26a
_commit=9ae8841ec4720e74173e2f72fac33f0848bbf435
url="https://szs.wiimm.de/"
arch="x86 x86_64"
license="GPL-2.0-or-later"
makedepends="bash libpng-dev linux-headers ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$_commit.tar.gz::https://github.com/Wiimm/wiimms-szs-tools/archive/$_commit.tar.gz
	$pkgname.patch"
builddir="$srcdir/$pkgname-$_commit"
options="!check" # No tests

build() {
	make -C project INSTALL_PATH="$pkgdir/usr" all doc
}

package() {
	make -C project INSTALL_PATH="$pkgdir/usr" install
	mkdir -p "$pkgdir"/usr/share/doc/szs/
	install -m644 project/doc/*.txt "$pkgdir"/usr/share/doc/szs/
}

sha512sums="
3e4f3555e53012096a64f9d4dba4bae2b4284ca185a2c9e732b022734558bddc6f040ad180d1074906c9fdc91750a37b5883fd902db0da65d816dd46c79c3d1e  wiimms-szs-tools-9ae8841ec4720e74173e2f72fac33f0848bbf435.tar.gz
570f0bfa2f72d87a485e3a6a27f7b5ab2925cad4f100c43723e4ba0d1ef6fc7a6c34c4572d7b1ae4d95b862edf142b2ad276e9563106dd09ee6569bbe82e4aa4  wiimms-szs-tools.patch
"
